package v3.chapter1.t18;

public class Run {

	public static void main(String[] args) {
		System.out.println("main thread begin priority="+Thread.currentThread().getPriority());
		
		//Thread.currentThread().setPriority(6);
		System.out.println("main thread end priority="+Thread.currentThread().getPriority());
		
		MyThread1 t=new MyThread1();
		t.start();

	}

}

class MyThread1 extends Thread{

	@Override
	public void run() { 
		System.out.println("MyThread1 run priority="+this.getPriority());
		MyThread2 t=new MyThread2();
		t.start();
	}
	
}

class MyThread2 extends Thread{

	@Override
	public void run() { 
		System.out.println("MyThread2 run priority="+this.getPriority());
	}
	
}